<fieldset class="section">
   <legend>选票单</legend>
 <div class="field">  
    <%#= f.label :title, "Section title:" %><br />  
    <%#= f.text_field :title %>  
      
     选票单标题：<%= text_field_tag "vote[sections_attributes][][title]" %>
  </div>  
  <div class="field">
    <%#= f.label :instruction %><br />
    <%#= f.text_area :instruction,:rows => 2 %>
    注意事项：<%= text_area_tag "vote[sections_attributes][][instruction]" %>
  </div>

  <%= f.fields_for :control_groups do |builder| %>
      <%= render "control_group_fields", :f => builder %>
  <% end %>
  <%= link_to_function("添加子选票单", "add_field(this)")%>

  <div  class="field">
  <%#= link_to_add_fields "Add control_group", f, :control_groups %> 
</div>
  <div class="field">
   <%#= f.hidden_field :_destroy %>  
  <%#= link_to_function "Remove Section", "remove_fields(this)" %> 
  </div>

<%= link_to_function("删除本选票单", "remove_field(this)")%>

</fieldset>
